package com.zqh.generator;
import com.zqh.model.DataModel;
import freemarker.template.TemplateException;
import cn.hutool.core.io.FileUtil;
import java.io.File;
import java.io.IOException;



/**
* 核心生成器
*/
public class FileGenerator {

/**
* 生成
*
* @param model 数据模型
* @throws TemplateException
* @throws IOException
*/
public static void doGenerate(DataModel model) throws TemplateException, IOException {

    String inputRootPath = ".source/springboot-init-master";
    String outputRootPath = "generated";

    String inputPath;
    String outputPath;

        String password = model.mysqlConfig.password;
        String url = model.mysqlConfig.url;
        String username = model.mysqlConfig.username;
        String description = model.docsConfig.description;
        String title = model.docsConfig.title;
        String version = model.docsConfig.version;
         boolean needDocs = model.needDocs;
         boolean needPost = model.needPost;
         boolean needCors = model.needCors;
         boolean needEs = model.needEs;
         String basePackage = model.basePackage;
         boolean needRedis = model.needRedis;
/*------------------------------*/
            // groupKey = post
                if(needPost){
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/service/PostThumbService.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/service/PostThumbService.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/resources/mapper/PostMapper.xml.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/resources/mapper/PostMapper.xml").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/resources/mapper/PostFavourMapper.xml.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/resources/mapper/PostFavourMapper.xml").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/postfavour/PostFavourQueryRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/postfavour/PostFavourQueryRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/job/once/FullSyncPostToEs.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/job/once/FullSyncPostToEs.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/controller/PostThumbController.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/controller/PostThumbController.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/post/PostEsDTO.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/post/PostEsDTO.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/postthumb/PostThumbAddRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/postthumb/PostThumbAddRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/entity/PostFavour.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/entity/PostFavour.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/postfavour/PostFavourAddRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/postfavour/PostFavourAddRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/entity/Post.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/entity/Post.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/job/cycle/IncSyncPostToEs.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/job/cycle/IncSyncPostToEs.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/service/impl/PostServiceImpl.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/service/impl/PostServiceImpl.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/service/impl/PostThumbServiceImpl.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/service/impl/PostThumbServiceImpl.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/service/impl/PostFavourServiceImpl.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/service/impl/PostFavourServiceImpl.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/post/PostQueryRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/post/PostQueryRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/controller/PostFavourController.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/controller/PostFavourController.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/entity/PostThumb.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/entity/PostThumb.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/mapper/PostFavourMapper.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/mapper/PostFavourMapper.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/controller/PostController.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/controller/PostController.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/mapper/PostMapper.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/mapper/PostMapper.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/service/PostService.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/service/PostService.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/post/PostAddRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/post/PostAddRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/mapper/PostThumbMapper.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/mapper/PostThumbMapper.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/esdao/PostEsDao.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/esdao/PostEsDao.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/vo/PostVO.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/vo/PostVO.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/service/PostFavourService.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/service/PostFavourService.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/post/PostUpdateRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/post/PostUpdateRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/resources/mapper/PostThumbMapper.xml.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/resources/mapper/PostThumbMapper.xml").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                    /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/post/PostEditRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/post/PostEditRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                }
        /*------------------------------*/
    inputPath = new File(inputRootPath,"mvnw").getAbsolutePath();
    outputPath = new File(outputRootPath,"mvnw").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/config/MyBatisPlusConfig.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/config/MyBatisPlusConfig.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/enums/FileUploadBizEnum.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/enums/FileUploadBizEnum.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/common/PageRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/common/PageRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/test/java/com/yupi/springbootinit/manager/CosManagerTest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/test/java/com/yupi/springbootinit/manager/CosManagerTest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"doc/swagger.png").getAbsolutePath();
    outputPath = new File(outputRootPath,"doc/swagger.png").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"sql/create_table.sql").getAbsolutePath();
    outputPath = new File(outputRootPath,"sql/create_table.sql").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/user/UserUpdateMyRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/user/UserUpdateMyRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/resources/application-prod.yml").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/resources/application-prod.yml").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/utils/SpringContextUtils.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/utils/SpringContextUtils.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/manager/CosManager.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/manager/CosManager.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/controller/WxMpController.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/controller/WxMpController.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/test/.DS_Store").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/test/.DS_Store").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"pom.xml.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"pom.xml").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/user/UserUpdateRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/user/UserUpdateRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/controller/UserController.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/controller/UserController.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,".DS_Store").getAbsolutePath();
    outputPath = new File(outputRootPath,".DS_Store").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/wxmp/WxMpConstant.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/wxmp/WxMpConstant.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/vo/UserVO.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/vo/UserVO.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/exception/ThrowUtils.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/exception/ThrowUtils.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/user/UserQueryRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/user/UserQueryRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"sql/post_es_mapping.json").getAbsolutePath();
    outputPath = new File(outputRootPath,"sql/post_es_mapping.json").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/test/java/com/yupi/springbootinit/service/PostFavourServiceTest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/test/java/com/yupi/springbootinit/service/PostFavourServiceTest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/aop/AuthInterceptor.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/aop/AuthInterceptor.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/generate/CodeGenerator.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/generate/CodeGenerator.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/wxmp/handler/SubscribeHandler.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/wxmp/handler/SubscribeHandler.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"mvnw.cmd").getAbsolutePath();
    outputPath = new File(outputRootPath,"mvnw.cmd").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/common/ResultUtils.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/common/ResultUtils.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/controller/FileController.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/controller/FileController.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/resources/application-test.yml").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/resources/application-test.yml").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/utils/SqlUtils.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/utils/SqlUtils.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
                if(needCors){
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/config/CorsConfig.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/config/CorsConfig.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
                }
        /*------------------------------*/
    inputPath = new File(inputRootPath,".mvn/wrapper/maven-wrapper.properties").getAbsolutePath();
    outputPath = new File(outputRootPath,".mvn/wrapper/maven-wrapper.properties").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/service/UserService.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/service/UserService.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/config/JsonConfig.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/config/JsonConfig.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/user/UserRegisterRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/user/UserRegisterRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/constant/FileConstant.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/constant/FileConstant.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/config/CosClientConfig.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/config/CosClientConfig.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/exception/GlobalExceptionHandler.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/exception/GlobalExceptionHandler.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/test/java/com/yupi/springbootinit/mapper/PostMapperTest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/test/java/com/yupi/springbootinit/mapper/PostMapperTest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/exception/BusinessException.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/exception/BusinessException.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/resources/mapper/UserMapper.xml.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/resources/mapper/UserMapper.xml").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/entity/User.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/entity/User.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/resources/application.yml.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/resources/application.yml").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/common/ErrorCode.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/common/ErrorCode.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/utils/NetUtils.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/utils/NetUtils.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/enums/UserRoleEnum.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/enums/UserRoleEnum.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,".gitignore").getAbsolutePath();
    outputPath = new File(outputRootPath,".gitignore").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/MainApplication.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/MainApplication.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/resources/test_excel.xlsx").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/resources/test_excel.xlsx").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/user/UserAddRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/user/UserAddRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/wxmp/handler/EventHandler.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/wxmp/handler/EventHandler.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/resources/banner.txt").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/resources/banner.txt").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/constant/CommonConstant.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/constant/CommonConstant.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/resources/META-INF/additional-spring-configuration-metadata.json").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/resources/META-INF/additional-spring-configuration-metadata.json").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/test/java/com/yupi/springbootinit/MainApplicationTests.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/test/java/com/yupi/springbootinit/MainApplicationTests.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/test/java/com/yupi/springbootinit/utils/EasyExcelTest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/test/java/com/yupi/springbootinit/utils/EasyExcelTest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/mapper/UserMapper.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/mapper/UserMapper.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/constant/UserConstant.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/constant/UserConstant.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/.DS_Store").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/.DS_Store").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/user/UserLoginRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/user/UserLoginRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/annotation/AuthCheck.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/annotation/AuthCheck.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/test/java/com/yupi/springbootinit/service/UserServiceTest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/test/java/com/yupi/springbootinit/service/UserServiceTest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/vo/LoginUserVO.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/vo/LoginUserVO.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/wxmp/handler/MessageHandler.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/wxmp/handler/MessageHandler.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/test/java/com/yupi/springbootinit/mapper/PostFavourMapperTest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/test/java/com/yupi/springbootinit/mapper/PostFavourMapperTest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"README.md.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"README.md").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/config/WxOpenConfig.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/config/WxOpenConfig.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"Dockerfile").getAbsolutePath();
    outputPath = new File(outputRootPath,"Dockerfile").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        StaticGenerator.copyFilesByHutool(inputPath,outputPath);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/file/UploadFileRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/model/dto/file/UploadFileRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/service/impl/UserServiceImpl.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/service/impl/UserServiceImpl.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/common/DeleteRequest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/common/DeleteRequest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/test/java/com/yupi/springbootinit/service/PostThumbServiceTest.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/test/java/com/yupi/springbootinit/service/PostThumbServiceTest.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/wxmp/WxMpMsgRouter.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/wxmp/WxMpMsgRouter.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/common/BaseResponse.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/common/BaseResponse.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/
    inputPath = new File(inputRootPath,"src/main/java/com/yupi/springbootinit/aop/LogInterceptor.java.ftl").getAbsolutePath();
    outputPath = new File(outputRootPath,"src/main/java/com/yupi/springbootinit/aop/LogInterceptor.java").getAbsolutePath();
    if(!FileUtil.exist(inputPath)){
    FileUtil.touch(inputPath);
    }
    if(!FileUtil.exist(outputPath)){
    FileUtil.touch(outputPath);
    }
        DynamicGenerator.doGenerate(inputPath,outputPath,model);
        /*------------------------------*/

}

}


